import httpInstance from '@/utils/https.js'

// 房间信息
export const getRoomAPI = () => {
    return httpInstance({
        url: '/room/all',
        method: 'GET'
    })
}

export const getRoomDevsAPI = (roomId) => {
    return httpInstance({
        url: '/room/device',
        method: 'GET',
        params: {
            roomId
        }
    })
}

export const addRoomDevsAPI = (data) => {
    return httpInstance({
        url: '/room/add',
        method: 'POST',
        data,
    })
}
